<?php

// create table footer string
$str_table_footer = '';
if (is_array($table_footer)) {
	foreach ($table_footer as $ridx => $rval) {
		$str_table_footer.='<tr>';
		$str_table_footer.=$rval;
		$str_table_footer.='</tr>';
	}
}

// clear table
$this->table->clear();

// table is vertical
$this->table->set_horizontal(false);

// set table properties
$this->table->set_template(
	array(
		'table_open' 	=> 
			'<table class="table sort07 table-stripeclass:alternate" id="table-0">',
			
		'heading_cell_start'	=> '<th valign="bottom" class="table-sortable:alphanumeric">',

		'table_close' 	=>
			'</tbody>
			<tfoot>'.$str_table_footer.'</tfoot>
		</table>'
)); 

$this->table->set_heading($table_header['fields']);
$this->table->set_filter($table_header['filters']);
echo $this->table->generate($table_content);

/* EOF views/viewer/tabular_table.php */